using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;

public class Follow : MonoBehaviour
{
    public Transform playTransform;
    public float moveTime;

    private void LateUpdate()
    {
        if (playTransform.position != transform.position)
        {
            transform.position = Vector2.Lerp(transform.position, playTransform.position, Time.deltaTime * moveTime);
        }
    }
}
